import java.util.Scanner;

public class IndexOfSmallestElement {
    public static void main(String[] args) {
        System.out.println("请输入10个数字:");
        Scanner input=new Scanner(System.in);
        double[] a=new double[10];
        for (int i=0;i<10;i++) {
            a[i] = input.nextDouble();
        }
        System.out.println(indexOfSmallestElement(a));
    }
    public static int indexOfSmallestElement(double[] array){
        int index=0;
        double min=array[0];
        for (int i=1;i<array.length;i++){
            if (array[i]<min) {
                min=array[i];
                index=i;
            }

        }
        return index;
    }
}
